<template>
  <div class="total-sales">
    <common-card title="总销售金额" value="￥ 32,035,169">
      <template>
        <div class="compare-wrapper">
          <div class="compare">
            <span>日同比</span>
            <span class="emphasis">7.33%</span>
            <div class="increase" />
          </div>
          <div class="compare">
            <span>月同比</span>
            <span class="emphasis">38.79%</span>
            <div class="decrease" />
          </div>
        </div>
      </template>
      <template slot="footer">
        <span>昨日销售额</span>
        <span class="emphasis">￥30,000,000</span>
      </template>
    </common-card>
  </div>
</template>

<script>
import CommonCardMinxins from '@/utils/mixins/CommonCardMinxins'

export default {
  mixins: [CommonCardMinxins]
}
</script>

<style lang="scss" scoped>
.compare-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  .compare {
    display: flex;
    align-items: center;
    font-size: 12px;
    margin-top: 3px;
    color: #666;
  }
}
</style>
